﻿<General:CustomWindow x:Class="iStudio.View.Dialog.Alert"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:General="clr-namespace:iStudio.Control.General"
        Title="iStudio Application Error" Height="Auto" MaxHeight="350" Width="500" CanMinimize="False" CanMaximize="False" WindowStartupLocation="CenterOwner" Icon="/iStudio;component/Resources/Icons/iStudio_256x256.png" ShowInTaskbar="False" ResizeMode="NoResize" Style="{StaticResource WindowStyle}" SizeToContent="Height">
    <Grid Margin="15,0,15,15">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        
        <Grid Margin="0,0,0,10">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>

            <Image Margin="0,15,5,0" VerticalAlignment="Top" Stretch="Fill" Width="64" Height="64" Source="/iStudio;component/Resources/Icons/message_alert_64x64.png" />

            <StackPanel Grid.Column="1">
                
                <TextBlock Name="alertTitle" Text="Application error" FontWeight="SemiBold" Foreground="#FFABABAB" FontSize="20" />
                <TextBlock Text="iStudio v0.4.0.1761 (32-bit)" Margin="0,0,0,10" FontFamily="Segoe UI" Foreground="#FFABABAB" FontSize="10" />
                <TextBlock Name="alertDescription" FontFamily="Segoe UI" Foreground="#FFABABAB" TextWrapping="Wrap">
                    Oops, iStudio has encountered fatal error and needs to close. We are sorry for inconvenience. 
                    If you wish to help with solving this error, please post error log below to <Bold>http://istudio.codeplex.com</Bold>.
                </TextBlock>
            </StackPanel>
        </Grid>

        <TextBox Grid.Row="1" Margin="0,0,0,10" Name="alertCopyDetails" Background="Transparent" TextAlignment="Justify" BorderThickness="0" IsReadOnly="True" VerticalAlignment="Top" FontFamily="Segoe UI" Foreground="#FFABABAB" FontSize="11" TextWrapping="Wrap" FontStyle="Italic" VerticalScrollBarVisibility="Auto" />
        
        <Button Grid.Row="2" Content="Close" Height="23" HorizontalAlignment="Right" VerticalAlignment="Bottom" Width="75" IsCancel="True" />
    </Grid>
</General:CustomWindow>
